﻿<Window x:Class="C9ShowNotesHelper.FindEpisode"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Find Channel 9 Show Episode" Height="434" Width="828" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded" Icon="/C9ShowNotesHelper;component/Resources/C9-1-32x32.ico">
    <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="12" />
      <ColumnDefinition Width="57" />
      <ColumnDefinition Width="220*" />
      <ColumnDefinition Width="57" />
      <ColumnDefinition Width="57" />
      <ColumnDefinition Width="12" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="8" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="236*" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="7" />
    </Grid.RowDefinitions>
    <Button Content="Ok" Name="okButton" Click="okButton_Click" Grid.Row="3" Grid.Column="3" />
    <Button Content="Cancel" Name="cancelButton" IsCancel="True" Click="cancelButton_Click" Grid.Row="3" Grid.Column="4" />
    <Button Content="Refresh" Name="refreshButton" Click="refreshButton_Click" Grid.Row="3" Grid.Column="1" />
    <ListBox Margin="0,11,0,6" Name="listBox1" Grid.Row="2" Grid.ColumnSpan="4" Grid.Column="1">
      <ListBox.ItemContainerStyle>
        <Style  TargetType="ListBoxItem">
          <EventSetter Event="MouseDoubleClick" Handler="listBox1_MouseDoubleClick"/>
        </Style>
      </ListBox.ItemContainerStyle>
      <ListBox.ItemTemplate>
        <DataTemplate>
          <StackPanel Orientation="Vertical">
            <Label Content="{Binding Title}" FontWeight="Bold" FontSize="14" Padding="0,5,5,5" />
            <Label Content="{Binding WmvUrl}" Padding="5,0,0,5"/>
            <StackPanel Orientation="Horizontal">
              <Label Content="Published:"  Padding="5,0"  />
              <Label Content="{Binding Published}"  Padding="0"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
              <Label Content="Last Updated:" Padding="5,0" />
              <Label Content="{Binding LastUpdated}"  Padding="0"/>
            </StackPanel>

          </StackPanel>
        </DataTemplate>
      </ListBox.ItemTemplate>

    </ListBox>
    <TextBox Name="filterTextBox" TextChanged="filterTextBox_TextChanged" Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="1" />
    <Label Content="Search:" Name="label1" Grid.Column="1" Grid.Row="1" />
    <Label Grid.Column="2" Grid.Row="3" Name="statusLabel" Margin="82,0,5,0" />
    <Button Content="Next Page" Grid.Row="3" Margin="6,0,535,0" Name="nextPageButton" Grid.Column="2" Click="nextPageButton_Click" />
  </Grid>

</Window>
